package com.wyl.pmd.rule.bestpractices;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class LooseCoupling {
	// bad
    private ArrayList<String> list = new ArrayList<String>();

    public HashSet<String> getFoo() {
        return new HashSet<String>();
    }

    // good
    private List<String> list1 = new ArrayList<String>();

    public Set<String> getFoo1() {
        return new HashSet<String>();
    }
}
